@import 'variables';

.page-nav {
  display: flex;
  border: $borderPrimary;
  border-left: none;
  border-right: none;
  overflow: auto;
  white-space: nowrap;
  cursor: grab;

  &::-webkit-scrollbar {
    height: 0;
    background-color: $primary;
  }

  &.non-border-top {
    border-top: none;
  }

  &.no-wrap {
    flex-wrap: nowrap;
  }

  &.wrap {
    flex-wrap: wrap;
  }
}

.page-nav-item {
  padding: $space-x3 $space-x2;
  color: $gray-700;
  text-decoration: none;
  font-size: 14px;
  line-height: 24px;

  &:hover,
  &:focus {
    text-decoration: none;
    padding-bottom: 10px;
    outline: none;
    border-bottom: 2px solid $primary;
    color: $gray-700;
  }

  &:active,
  &.active {
    font-weight: 400;
    text-decoration: none;
    padding-bottom: 10px;
    border-bottom: 2px solid $primary;
    color: $primary !important;

    > svg {
      path {
        fill: $primary !important;
      }
    }
  }

  &.disabled {
    box-shadow: none;
    color: $gray-400 !important;
    cursor: default;

    > svg {
      path {
        fill: $gray-400 !important;
      }
    }
  }

  > svg {
    margin-right: 4px;
  }
}
